import Mock from 'mockjs'
import homeApi from './mockServeData/home'
import userApi from './mockServeData/user'

Mock.mock('/home/getData',homeApi.getStatistcalData)
Mock.mock(/user\/add/,'post',userApi.createUser)//拦截器
Mock.mock(/user\/edit/,'post',userApi.updateUser)

Mock.mock(/user\/getUser/,'post',userApi.getUserLish)
Mock.mock(/user\/del/,'post',userApi.deleteUser)